package com.mk.manage;

import java.io.File;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import javax.swing.JOptionPane;

import org.apache.commons.io.FileUtils;
import org.openqa.selenium.WebDriver;

import com.mk.main.RunEmailSign;
import com.mk.node.Epidemic;
import com.mk.pojo.User;

/**
* @author 作者:秋哲    E-mail:2810201146@qq.com:
* @version 创建时间：2020年8月24日 下午9:08:44
* @description: 疫情签到多线程实现
*/
public class ManageEpidemic extends Thread{
	private Epidemic epidemic;
	private ManageUser manageUser;
	
	public ManageEpidemic(ManageUser manageUser) {
		this.epidemic = new Epidemic();
		this.manageUser = manageUser;
	}
	
	@Override
	public void run() {
		User user = manageUser.getUser();
		while(user!=null){
			epidemic.initUser(user);
			epidemic.go();
			user = manageUser.getUser();
		};
		epidemic.outAll();
		epidemic = null;
	}
}
